package com.sacc.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 滚~韬
 * @date 2022/4/2 11:19
 */
@Data
@TableName("box_all")
public class BoxAll {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("box_name")
    private String boxName;//蜂箱名字
    @TableField("box_desc")
    private String boxDesc;//蜂箱描述
    @TableField("box_id")
    private Integer boxId;//蜂箱id
    @TableField("box_price")
    private Float boxPrice;//蜂箱价格
    @TableField("box_origin")
    private String boxOrigin;//蜜源地
    @TableField("box_image_url")
    private String boxImageUrl;//蜂箱图片的本地路径
    @TableField("state")
    private Integer state;//0代表待认养,1代表已经认养
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT,value = "create_time")
    private LocalDateTime createTime;
}
